<?php
/**
 * Created by PhpStorm.
 * User: wudiying
 * Date: 2019/2/2
 * Time: 上午11:23
 */

namespace IMooc;


class Factory
{

    static function createDatabase(){
        $db = Database::getInstance();
        Register::_set('db1',$db);
        return $db;
    }
}